package com.swdegao.iot.netty.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.swdegao.iot.netty.entity.Terminals;
import com.swdegao.iot.netty.mapper.TerminalsMapper;
import com.swdegao.iot.netty.service.TerminalsService;

@Service
public class TerminalsServiceImpl implements TerminalsService {

	@Autowired
	private TerminalsMapper tm;
	
	@Override
	public int deleteByIMEI(String imei) {
		return tm.deleteByIMEI(imei);
	}

	@Override
	public int insert(Terminals terminal) {
		return tm.insert(terminal);
	}

	@Override
	public int insertSelective(Terminals terminal) {
		return tm.insertSelective(terminal);
	}

	@Override
	public Terminals selectByIMEI(String imei) {
		return tm.selectByIMEI(imei);
	}

	@Override
	public int updateByPrimaryKeySelective(Terminals terminal) {
		return tm.updateByPrimaryKeySelective(terminal);
	}

	@Override
	public int updateTerminalOnlineStatus(Terminals terminal) {
		return tm.updateTerminalOnlineStatus(terminal);
	}

}
